home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / elmalias.1 < prev    next >
Text File  |  1995-07-25  |  18KB  |  397 lines

  1.  
  2.  
  3.  
  4.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           elmalias - expand and display Elm address aliases
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           eeeellllmmmmaaaalllliiiiaaaassss [ ----aaaaddddeeeennnnrrrrssssuuuuvvvvVVVV ] [ ----ffff format ] [ name  ... ]
  13.  
  14.           $_l_i_b/pppprrrrlllloooonnnngggg [ options ... ] < _f_i_l_e
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.           _E_l_m_a_l_i_a_s allows you to examine information about aliases.
  18.           The alias databases are consulted for each _n_a_m_e on the
  19.           command line, and the alias value is displayed, one value
  20.           per line of output.  If _n_a_m_e is not a known alias, then it
  21.           is displayed unchanged.  If no _n_a_m_e is given on the command
  22.           line then all alias values in the databases are displayed.
  23.           All of these actions are default behaviors that may be
  24.           modified by command line options.
  25.  
  26.           There are two possible alias databases, a user-specific
  27.           alias file (usually in $_H_O_M_E/._e_l_m/_a_l_i_a_s_e_s) and a system-wide
  28.           alias file (usually in $_l_i_b/_a_l_i_a_s_e_s).  By default both files
  29.           are searched, first the user-specific file and then the
  30.           system-wide file.  If an alias file does not exist then
  31.           _e_l_m_a_l_i_a_s silently ignores it and continues on.  The ----ssss and
  32.           ----uuuu command line options (discussed shortly) can restrict
  33.           what files are files searched.
  34.  
  35.           There are two types of aliases, Person aliases and Group
  36.           aliases.  A Person alias expands to an individual address
  37.           and a Group alias contains a list of addresses, some of
  38.           which may be aliases.  By default, _e_l_m_a_l_i_a_s displays the
  39.           defined value of an alias, regardless of type.  The ----eeee
  40.           command line option (discussed shortly) fully expands out
  41.           Group aliases.
  42.  
  43.           The default output produced is just the ``Address''
  44.           information for each _n_a_m_e on the command line.  A number of
  45.           command line options (discussed shortly) may be used to
  46.           select different output information or specify a format of
  47.           your choosing.  The following information is maintained in
  48.           the alias databases, and may be accessed by the _e_l_m_a_l_i_a_s
  49.           utility:
  50.  
  51.                o+ Alias (the alias name)
  52.                o+ Last Name
  53.                o+ Name (the user's full name)
  54.                o+ Comment (not displayed in mail headers)
  55.                o+ Address (the alias value)
  56.                o+ Type (Person, Group, or Unknown)
  57.  
  58.  
  59.           When the _n_a_m_e specified on the command line is not a known
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/15/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  71.  
  72.  
  73.  
  74.           alias, both the ``Alias'' and ``Address'' information will
  75.           display as the _n_a_m_e, the ``Type'' information will display
  76.           as ``Unknown'', and all other items will be blank.
  77.  
  78.           The available command line options are:
  79.  
  80.           ----aaaa   Selects an alternative output format.  The ``Alias''
  81.                information is displayed in addition to and preceding
  82.                the usual ``Address'' information.
  83.  
  84.           ----dddd   Turns debugging on. Has no effect unless _e_l_m_a_l_i_a_s was
  85.                compiled with debugging enabled.
  86.  
  87.           ----eeee   Tells _e_l_m_a_l_i_a_s to fully expand group aliases.  This
  88.                option can be used only when _n_a_m_es are given on the
  89.                command line.
  90.  
  91.           ----ffff   The output produced will be in the specified _f_o_r_m_a_t.
  92.                Format specifications will be discussed shortly.
  93.  
  94.           ----nnnn   Selects an alternative output format.  The ``Name''
  95.                information, if it exists, is displayed in addition to
  96.                and following the usual ``Address'' information.  The
  97.                ``Name'' will be enclosed in parenthesis.
  98.  
  99.           ----rrrr   If a specified _n_a_m_e does not correspond to a known
  100.                alias then _e_l_m_a_l_i_a_s will display a message and exit
  101.                with a nonzero status.
  102.  
  103.           ----ssss   Normally _e_l_m_a_l_i_a_s examines both the user-specific and
  104.                system-wide alias files.  This option requests that
  105.                _e_l_m_a_l_i_a_s use the system-wide alias file, and unless the
  106.                ----uuuu option is also specified the user-specific alias
  107.                file will be ignored.
  108.  
  109.           ----uuuu   Normally _e_l_m_a_l_i_a_s examines both the user-specific and
  110.                system-wide alias files.  This option requests that
  111.                _e_l_m_a_l_i_a_s use the user-specific alias file, and unless
  112.                the ----ssss option is also specified the system-wide alias
  113.                file will be ignored.
  114.  
  115.           ----vvvv   Selects a verbose output format.  Both the ``Alias''
  116.                and the ``Name'' information will be displayed in
  117.                addition to the ``Address'' information.  The ``Alias''
  118.                information will precede the ``Address'' information,
  119.                and the ``Name'' information will be enclosed in
  120.                parenthesis and follow it.  If there is no ``Name''
  121.                information for this alias then that portion of the
  122.                output will be ignored.
  123.  
  124.           ----VVVV   Selects a very verbose, multi-line output format.
  125.                Displays all available information on aliases.
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/15/95)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  137.  
  138.  
  139.  
  140.           The output produced by _e_l_m_a_l_i_a_s is fully customizable with
  141.           the ----ffff option.  The _f_o_r_m_a_t string uses a syntax similar to
  142.           _d_a_t_e(_1) (System V version) and _p_r_i_n_t_f(_3).  The following
  143.           field descriptors may be used in _f_o_r_m_a_t specifications:
  144.  
  145.                %a   Alias (the alias name)
  146.                %l   Last Name
  147.                %n   Name (the user's full name)
  148.                %c   Comment (not displayed in mail headers)
  149.                %v   Address (the alias value)
  150.                %t   Type (Person, Group, or Unknown)
  151.  
  152.           Field widths in a [-][_m][._n] format (again, similar to
  153.           _p_r_i_n_t_f(_3)) may also be used.  For example, "%-20.20a" means
  154.           print the ``Alias'' information left justified in a field
  155.           twenty characters long, with the value truncated to twenty
  156.           characters.
  157.  
  158.           The following special character sequences are also
  159.           recognized in format specifications:
  160.  
  161.                \b   A backspace.
  162.                \f   A formfeed.
  163.                \n   A newline.
  164.                \r   A return.
  165.                \t   A tab.
  166.                \_c   Literal character ``_c''.
  167.  
  168.           There is a very simplistic conditional evaluation mechanism
  169.           that may be used in format specifications.  The conditional
  170.           text should be surrounded by question marks, and a single
  171.           character that specifies the condition immediately follows
  172.           the first question mark.  The condition characters
  173.           correspond to the ``%'' field specifier characters, and the
  174.           condition is true if the corresponding alias information is
  175.           defined and nonempty.  For example, if you want to display
  176.           the ``Name'' information surrounded by parenthesis, but omit
  177.           it if the information is not available, you may use
  178.           ``?n(%n)?'' in the format specification.
  179.  
  180.           The command line switches that select an alternative format
  181.           correspond to the following format specifiers.
  182.  
  183.                _d_e_f_a_u_l_t   "%v"
  184.                -a   "%-20.20a %v"
  185.                -n   "%v?n (%n)?"
  186.                -v   "%-20.20a %v?n (%n)?"
  187.                -V   "Alias:\t\t%a\n\
  188.                       Address:\t%v\n\
  189.                       Type:\t\t%t\n\
  190.                     ?n  Name:\t\t%n\n?\
  191.                     ?l  Last Name:\t%l\n?\
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 7/15/95)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  203.  
  204.  
  205.  
  206.                     ?c  Comment:\t%c\n?"
  207.  
  208.  
  209.           The _p_r_l_o_n_g utility formats long amounts of data, folding
  210.           across multiple lines.  It is useful to reformat output of
  211.           _e_l_m_a_l_i_a_s.  _P_r_l_o_n_g reads data from its standard input, one
  212.           line at a time, and tries to place as much information as
  213.           possible on each output line.  A field seperator, by default
  214.           a single space, seperates each input record in the output
  215.           lines.  Every output line is preceded by a leader field.  By
  216.           default the leader of the first output line is an empty
  217.           string, and the leader for all subsequent output lines is a
  218.           single tab.  _p_r_l_o_n_g will never split an input record.  If an
  219.           input record exceeds the maximum output line length, it will
  220.           appear unmodified on an output line all by itself.
  221.  
  222.           The following options may be used to modify the _p_r_l_o_n_g
  223.           behavior.
  224.  
  225.           ----wwww _w_i_d_t_h    Constrains output lines to _w_i_d_t_h columns in
  226.                       length (not counting an appended newline
  227.                       character).  The default is 78 columns.  The
  228.                       width calculation assumes that tabstops occur
  229.                       every eight spaces.
  230.  
  231.           ----ffff _s_t_r_i_n_g   Seperates each input record with the indicated
  232.                       _s_t_r_i_n_g when displayed to the output.  The
  233.                       default is a single space.
  234.  
  235.           ----1111 _s_t_r_i_n_g   Specifies the leader _s_t_r_i_n_g used for the first
  236.                       line of output.  (This option is the digit
  237.                       ``one''.) The default is an empty string.
  238.  
  239.           ----llll _s_t_r_i_n_g   Specifies the leader _s_t_r_i_n_g for all subsequent
  240.                       lines of output.  (This option is a lower-case
  241.                       ``ell''.) The default is a single tab.
  242.  
  243.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  244.           Consider an _a_l_i_a_s_e_s._t_e_x_t file that contains:
  245.  
  246.                friends = List of Friends = tom, dick, harry
  247.                tom = Tom Smith = sleepy!tom
  248.                dick = Dick Jones = dopey!dick
  249.                harry = = grumpy!harry
  250.  
  251.           Below are shown some example commands and the output
  252.           produced.
  253.  
  254.                $ _e_l_m_a_l_i_a_s _f_r_i_e_n_d_s
  255.                tom,dick,harry
  256.                $ _e_l_m_a_l_i_a_s _m_i_k_e
  257.                mike
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 7/15/95)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  269.  
  270.  
  271.  
  272.                $ _e_l_m_a_l_i_a_s -_r _m_i_k_e
  273.                elmalias: "mike" is not a known alias
  274.                $ _e_l_m_a_l_i_a_s -_n _f_r_i_e_n_d_s
  275.                tom,dick,harry (List of Friends)
  276.                $ _e_l_m_a_l_i_a_s -_a _f_r_i_e_n_d_s
  277.                friends              tom,dick,harry
  278.                $ _e_l_m_a_l_i_a_s -_V _f_r_i_e_n_d_s
  279.                Alias:          friends
  280.                  Address:      tom,dick,harry
  281.                  Type:         Group
  282.                  Name:         List of Friends
  283.                  Last Name:    List of Friends
  284.                $ _e_l_m_a_l_i_a_s -_e _f_r_i_e_n_d_s
  285.                tom@sleepy.acme.com
  286.                dick@dopey.acme.com
  287.                harry@grumpy.acme.com
  288.                $ _e_l_m_a_l_i_a_s -_v_e _f_r_i_e_n_d_s
  289.                tom                  tom@sleepy.acme.com (Tom Smith)
  290.                dick                 dick@dopey.acme.com (Dick Jones)
  291.                harry                harry@grumpy.acme.com
  292.                $ _e_l_m_a_l_i_a_s -_f "_a_l_i_a_s %_a _i_s \"%_v\" ?_n(%_n)?" -_e _f_r_i_e_n_d_s
  293.                alias tom is "tom@sleepy.acme.com" (Tom Smith)
  294.                alias dick is "dick@dopey.acme.com" (Dick Jones)
  295.                alias harry is "harry@grumpy.acme.com"
  296.                $ _e_l_m_a_l_i_a_s -_e_n _f_r_i_e_n_d_s | /_u_s_r/_l_i_b/_e_l_m/_p_r_l_o_n_g -_w_4_0
  297.                tom@sleepy.acme.com (Tom Smith)
  298.                        dick@dopey.acme.com (Dick Jones)
  299.                        harry@grumpy.acme.com
  300.                $ _e_l_m_a_l_i_a_s -_e_n _f_r_i_e_n_d_s | /_u_s_r/_l_i_b/_e_l_m/_p_r_l_o_n_g -_1 "_T_o: " -_f ", " -_w_4_0
  301.                To: tom@sleepy.acme.com (Tom Smith),
  302.                        dick@dopey.acme.com (Dick Jones),
  303.                        harry@grumpy.acme.com
  304.  
  305.  
  306.           The _c_h_e_c_k_a_l_i_a_s(1L) and _l_i_s_t_a_l_i_a_s(1L) scripts distributed
  307.           with the Elm package provide further examples of the
  308.           _e_l_m_a_l_i_a_s and _p_r_l_o_n_g utilities.
  309.  
  310.      AAAAUUUUTTTTHHHHOOOORRRR
  311.           Elm Development Group
  312.  
  313.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  314.           checkalias(1L), elm(1L), listalias(1L), newalias(1L)
  315.  
  316.      BBBBUUUUGGGGSSSS
  317.           There is no centralized, comprehensive interface to the Elm
  318.           2.4 alias system, so every program in the Elm suite that
  319.           uses aliases implements its own interfaces.  It's possible
  320.           for inconsistencies to creep in between what _e_l_m_a_l_i_a_s says
  321.           and what some Elm utility does.  If you find an
  322.           inconsistency please report it to us!
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 7/15/95)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) EEEELLLLMMMMAAAALLLLIIIIAAAASSSS((((1111LLLL))))
  335.  
  336.  
  337.  
  338.           Boy, there sure are a lot of command line switches in this
  339.           thing.
  340.  
  341.           Note that the precedence of aliases is user file then system
  342.           file.  This means that a user can 'overload' an alias by
  343.           having one defined in the system file also defined in
  344.           theirs.  This shouldn't turn out to be a problem, but is
  345.           something for the system administrator to keep in mind when
  346.           creating the system alias file.
  347.  
  348.      BBBBUUUUGGGG RRRREEEEPPPPOOOORRRRTTTTSSSS TTTTOOOO
  349.           Syd Weinstein  elm@DSI.COM    (dsinc!elm)
  350.  
  351.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTTSSSS
  352.           Copyright 1993 by The USENET Community Trust
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 7/15/95)
  394.  
  395.  
  396.  
  397.